package com.ruoyi.applet.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.applet.mapper.SpikesInfoMapper;
import com.ruoyi.applet.domain.SpikesInfo;
import com.ruoyi.applet.service.ISpikesInfoService;

import javax.annotation.Resource;

/**
 * 秒杀活动Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-14
 */
@Service
public class SpikesInfoServiceImpl implements ISpikesInfoService
{
    @Resource
    private SpikesInfoMapper spikesInfoMapper;


    @Override
    public Integer updateSpikesNumber(Long spikesGoodsId, Long spikesNumber, Long spikesSold,Long spikesInfoId) {
        return spikesInfoMapper.updateSpikesNumber(spikesGoodsId, spikesNumber, spikesSold,spikesInfoId);
    }

    @Override
    public SpikesInfo selectAllBySpikesGoodIdSpikesInfo(Long spikesGoodsId, Long spikesInfoId) {
        return spikesInfoMapper.selectAllBySpikesGoodIdSpikesInfo(spikesGoodsId,spikesInfoId);
    }
}
